package mobilefeel.touchscreen;

import mobilefeel.AndroidDevice;

/**
 * Used for receiving views registered by an Android device.
 */
public interface ViewListener {
	
	/**
	 * Called when an Android view is registered. The {@link View} object
	 * received will allow for registration of callbacks and reception of
	 * different view events from the Android view. The method will also be
	 * fired when the Android device re-registers a view. In that case, view
	 * parameters will be updated.
	 * 
	 * @param device the {@link AndroidDevice} that generated the event
	 * @param view the {@link View} received
	 */
	void onViewRegistered(AndroidDevice device, View view);
	
}
